package com.yanqu.road.server.cmd.cross.activity;

import com.yanqu.road.pb.cross.activity.CrossActivityProto;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.command.Command;
import com.yanqu.road.server.manger.cross.CrossDataMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.GameProtocol;
import io.netty.channel.ChannelHandlerContext;

@Cmd(code = GameProtocol.S_CROSS_ACTIVITY_UNION_TYPE_RANK_SYNC,desc = "跨服联盟多类型排行榜同步")
public class CrossActivityUnionConditionSyncCmd implements Command {
    @Override
    public void execute(ChannelHandlerContext ctx, YanQuMessage packet) throws Exception {
        CrossActivityProto.CrossActivityUnionRankListSyncMsg syncMsg = CrossActivityProto.CrossActivityUnionRankListSyncMsg.parseFrom(packet.getBytes());
        CrossDataMgr.crossActivityUnionConditionRankSync(syncMsg);
    }
}
